POV-Ray : Newsgroups : povray.general : Color add : Re: Color add Server Time
5 Aug 2024 02:23:30 EDT (-0400)
  Re: Color add  
From: Christoph Hormann
Date: 3 Jan 2003 16:45:02
Message: <3E16045E.23919376@gmx.de>
Christopher James Huff wrote:
> 
> texture {average
>     texture_map {
>         [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 3, 0, 0>]}}
>         [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 0, 3, 0>]}}
>         [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 0, 0, 3>]}}
>     }
> }

That definitely won't work.  Better:

texture {average
  texture_map {
    [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 3, 0, 0>]}} ]
    [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 0, 3, 0>]}} ]
    [1 pigment{function{..} color_map{[0 rgb 0][1 rgb < 0, 0, 3>]}} ]
  }
}

Even better:

texture {
  pigment {
    average
    pigment_map {
      [1 function{..} color_map{[0 rgb 0][1 rgb < 3, 0, 0>]} ]
      [1 function{..} color_map{[0 rgb 0][1 rgb < 0, 3, 0>]} ]
      [1 function{..} color_map{[0 rgb 0][1 rgb < 0, 0, 3>]} ]
    }
  }
}

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.